﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace TLTuan.App.TransferObj
{
    public class CThanhVien
    {
        #region Feild ...

        int _PK_ThanhVienID;
        string _taiKhoan;
        string _password;
        string _tenThanhVien;
        DateTime _ngaySinh;
        bool _gioiTinh;
        string _mobile;
        string _email;
        int _diem;
        DateTime _ngayThamGia;
        int _FK_NhomID;
        
        #endregion

        #region Interface ...


        public int PK_ThanhVienID
        {
            get { return _PK_ThanhVienID; }
            set { _PK_ThanhVienID = value; }
        }
        public string TaiKhoan
        {
            get { return _taiKhoan; }
            set { _taiKhoan = value; }
        }
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }
        public string TenThanhVien
        {
            get { return _tenThanhVien; }
            set { _tenThanhVien = value; }
        }
        public DateTime NgaySinh
        {
            get { return _ngaySinh; }
            set { _ngaySinh = value; }
        }
        public bool GioiTinh
        {
            get { return _gioiTinh; }
            set { _gioiTinh = value; }
        }
        public string Mobile
        {
            get { return _mobile; }
            set { _mobile = value; }
        }
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }
        public int Diem
        {
            get { return _diem; }
            set { _diem = value; }
        }
        public DateTime NgayThamGia
        {
            get { return _ngayThamGia; }
            set { _ngayThamGia = value; }
        }
        public int FK_NhomID
        {
            get { return _FK_NhomID; }
            set { _FK_NhomID = value; }
        }

        #endregion

        public CThanhVien()
        {
        }

        public CThanhVien(string ip_account, string ip_pass)
        {
            _taiKhoan = ip_account;
            _password = ip_pass;
        }

        public CThanhVien(int ip_ID)
        {
            _PK_ThanhVienID = ip_ID;
        }

        public CThanhVien(int ip_ID, string ip_taikhoan, string ip_password, string ip_tenTv, 
            DateTime ip_ngaySinh, bool ip_gioiTinh, string ip_Mobile, string ip_email, 
            int ip_diem, DateTime ip_ngayTG, int ip_QuyenID)
        {
            _PK_ThanhVienID = ip_ID;
            _taiKhoan = ip_taikhoan;
            _password = ip_password;
            _tenThanhVien = ip_tenTv;
            _ngaySinh = ip_ngaySinh;
            _gioiTinh = ip_gioiTinh;
            _mobile = ip_Mobile;
            _email = ip_email;
            _diem = ip_diem;
            _ngayThamGia = ip_ngayTG;
            _FK_NhomID = ip_QuyenID;
        }
    }
}
